<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>overflow-scroll-gradient</title>
    <style>
        .overflow-scroll-gradient {
            position: relative;
        }

        .overflow-scroll-gradient::after {
            content: "";
            position: absolute;
            width: 250px;
            bottom: 0;
            height: 25px;
            background: linear-gradient(transparent, white);
            pointer-events: none;
        }

        .overflow-scroll-gradient-scroller {
            overflow-y: scroll;
            background-color: #fff;
            width: 240px;
            height: 200px;
            padding: 15px;
            line-height: 1.2;
        }
    </style>
</head>

<body>
    <div class="overflow-scroll-gradient">
        <div class="overflow-scroll-gradient-scroller">
            Lorem ipsum dolor sit amet consectetur adipisicing elit. <br />
            Iure id exercitationem nulla qui repellat laborum vitae, <br />
            molestias tempora velit natus. Quas, assumenda nisi. <br />
            Quisquam enim qui iure, consequatur velit sit? <br />
            Lorem ipsum dolor sit amet consectetur adipisicing elit.<br />
            Iure id exercitationem nulla qui repellat laborum vitae, <br />
            molestias tempora velit natus. Quas, assumenda nisi. <br />
            Quisquam enim qui iure, consequatur velit sit?
        </div>
    </div>
</body>

</html>